package com.ruoyi.app.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 消息通知业务对象 app_message_notice
 *
 * 用于接收前端参数、做参数校验
 *
 * @author
 * @date 2025-09-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AppMessageNoticeBo extends BaseEntity {

    /**
     * ID
     */
    private Long id;

    /**
     * 接收人ID
     */
    @NotNull(message = "接收人ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long receiverId;

    /**
     * 消息标题
     */
    private String title;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 是否已读 (0=未读 1=已读)
     */
    private Integer isRead;

    /**
     * 备注
     */
    private String remark;
}
